﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Template2.Master" AutoEventWireup="true" CodeBehind="AccountInfo.aspx.cs" Inherits="EnglishAuction.AccountInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script>
        $(document).ready(function () {
            $("#ContentPlaceHolder1_txtNgaySinh").datepicker();
            $("#ContentPlaceHolder1_txtNgaySinh").datepicker("option", "dateFormat", "mm/dd/yy");
        });
    </script>
    <style type="text/css">
        .ui-widget {
            font-size: 13px !important;
            font-family: Arial;
        }

        .ui-state-error-text {
            margin-left: 10px;
            color: red;
        }

        #updateInfo {
            border-collapse: collapse;
        }

            #updateInfo td {
                padding: 4px;
            }
    </style>
    <br />
    <form runat="server">
        <div class="reg">
            <div style="font-size: 25px; margin: 3%;">
                Cập nhật thông tin tài khoản
            </div>
            <div class="hr"></div>

            <br />
            <table style="width: 100%;">
                <tr>
                    <td colspan="2" style="text-align: center; color: red">
                        <asp:Label ID="lbThongBao" runat="server" Text=""></asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 30%;">&nbsp;
                    </td>
                    <td>
                        <div>
                            <asp:Label ID="txtEror" runat="server" ForeColor="Red" Font-Bold="true" />
                        </div>
                        <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Red" Font-Bold="true" DisplayMode="List" />
                    </td>
                </tr>
                <tr>
                    <td class="td">Tên tài khoản:
                    </td>
                    <td>
                        <asp:Label ID="lbTenTaiKhoan" runat="server" Text="" Font-Bold="true"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="td">
                        Mật Khẩu:
                    </td>
                    <td>
                        <asp:LinkButton runat="server" CssClass="button"  PostBackUrl="~/ChangePassword.aspx" Text="Thay đổi mật khẩu" Font-Bold="true" />
                    </td>
                </tr>
                <tr>
                    <td class="td">Họ tên:
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtHoTen" CssClass="inputlenght"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td">Số điện thoại:
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtSoDienThoai" CssClass="inputlenght"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td">CMND:
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtCMND" CssClass="inputlenght" MaxLength="9"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                            ControlToValidate="txtCMND"
                            runat="server"
                            ErrorMessage="- CMND không được để trống."
                            Text="&nbsp"
                            SetFocusOnError="true"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator
                            ID="regexTextBox1"
                            ControlToValidate="txtCMND"
                            runat="server"
                            SetFocusOnError="true"
                            Text="&nbsp"
                            ValidationExpression="^[\s\S]{9,9}$"
                            ErrorMessage="- CMND chưa hợp lệ." />
                    </td>
                </tr>
                <tr>
                    <td class="td">Email:
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtEmail" CssClass="inputlenght" Enabled="false"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6"
                            ControlToValidate="txtEmail"
                            runat="server"
                            ErrorMessage="- Email không được để trống."
                            Text="&nbsp"
                            SetFocusOnError="true"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator
                            ID="RegularExpressionValidator1"
                            Text="&nbsp"
                            runat="server"
                            ControlToValidate="txtEmail"
                            CssClass="error"
                            ErrorMessage="- Email không hợp lệ."
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">

                        </asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class="td">Giới tính:
                    </td>
                    <td>
                        <asp:RadioButton ID="rbNam" runat="server" Checked="true" GroupName="gioiTinh" />
                        Nam
                        <asp:RadioButton ID="rbNu" runat="server" GroupName="gioiTinh" />
                        Nữ
                    </td>
                </tr>
                <tr>
                    <td class="td">Ngày sinh:
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtNgaySinh" CssClass="inputlenght"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7"
                            ControlToValidate="txtNgaySinh"
                            runat="server"
                            ErrorMessage="- Ngày sinh không được để trống."
                            Text="&nbsp"
                            SetFocusOnError="true"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="td">Địa chỉ:
                    </td>
                    <td>
                        <asp:TextBox runat="server" ID="txtDiaChi" CssClass="inputlenght"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td>
                        <asp:Button ID="btnUpdate" runat="server" Text="Cập nhật" CssClass="button big primary" OnClick="btnUpdate_Click" />
                    </td>
                </tr>
            </table>
            <br />
        </div>
    </form><br />
</asp:Content>
